<template>
    <header>
        <div class="logo">
            <img src="@/assets/images/logo.png" alt=" "/>
        </div>
        <div class='search' @click="goSearch">
            <i class='iconfont icon-fangdajing'></i>
            <span>搜您喜欢的...</span>
        </div>
        <div class='kefu'>
            <i class='iconfont icon-kefu'></i>
        </div>
    </header>
</template>

<script>
    export default {
        name: 'Header',
        methods: {
            goSearch() {
                this.$router.push('/search')
            }
        }

    }
</script>

<style scoped="scoped">
    header {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background-color: #b0352f;
    }

    header .logo {
        padding: 0 1px;
        width: 80px;
        height: 45px;
    }

    header .logo img {
        width: 100%;
        height: 100%;
    }

    .search {
        display: flex;
        align-items: center;
        width: 246px;
        height: 30px;
        background-color: #FFFFFF;
        border-radius: 12px;
    }

    .search i {
        padding: 0 5px;
        color: #ccc;
    }

    .search span {
        font-size: 14px;
        color: #ccc;
    }

    .kefu i {
        font-size: 38px;
        color: #fff;
    }
</style>
